package com.wuyou.api;

import com.wuyou.domain.Result;
import com.wuyou.dto.AdvPayLogDTO;
import com.wuyou.dto.AdvertisingDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description 广告服务的feign接口
 * author 刘雷雨
 * date 2022/9/30 18:16
 * version 1.0
 **/
@FeignClient("worryfree-advertise-service")
public interface AdvertiseServiceFeign {

    /**
     * 根据订单号修改广告订单信息
     * @param advertisingDTO
     * @return
     */
    @PostMapping("advertising/updateAdvertisingByOrderNum")
    Result updateAdvertisingByOrderNum(@RequestBody AdvertisingDTO advertisingDTO);


    /**
     * 根据订单号修改广告订单信息
     * @param advPayLogDTO
     * @return
     */
    @PostMapping("advPayLog/updateAdvPayInfoByOrderNum")
    Result updateAdvPayInfoByOrderNum(@RequestBody AdvPayLogDTO advPayLogDTO);

}
